/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

/* 主容器 */
.maintenance-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 10;
}

/* 内容区域 */
.maintenance-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: left;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    animation: fadeInUp 1s ease-out;
}

/* 图标样式 */
.icon {
    margin-bottom: 30px;
    animation: pulse 2s infinite;
    text-align: center;
}

.icon svg {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* 标题样式 */
h1 {
    color: #2c3e50;
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.2;
}

/* 主要消息 */
.main-message {
    color: #5a6c7d;
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* 预计时间 */
.estimated-time {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    border-left: 4px solid #4A90E2;
}

.estimated-time p {
    color: #4A90E2;
    font-size: 1.1rem;
    margin: 0;
}

#recovery-time {
    color: #4A90E2;
    font-weight: 600;
}

/* 进度条容器 */
.progress-container {
    margin-bottom: 30px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4A90E2, #357ABD);
    border-radius: 4px;
    animation: progressAnimation 3s ease-in-out infinite;
}

.progress-text {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

/* 联系信息 */
.contact-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.contact-info p {
    color: #856404;
    margin-bottom: 10px;
    font-weight: 500;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-details span {
    color: #495057;
    font-size: 0.9rem;
    background: white;
    padding: 8px 12px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 刷新提示 */
.refresh-hint {
    color: #6c757d;
    text-align: center;
}

.refresh-hint p {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

#refresh-btn {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

#refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.4);
}

#refresh-btn:active {
    transform: translateY(0);
}

/* 背景动画 */
.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

/* 动画定义 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes progressAnimation {
    0% {
        width: 0%;
    }
    50% {
        width: 70%;
    }
    100% {
        width: 0%;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
    }
    66% {
        transform: translateY(10px) rotate(240deg);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .maintenance-content {
        padding: 40px 30px;
        margin: 20px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .main-message {
        font-size: 1.1rem;
    }
    
    .contact-details {
        flex-direction: column;
        gap: 10px;
    }
    
    .contact-details span {
        display: block;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .maintenance-content {
        padding: 30px 20px;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    .main-message {
        font-size: 1rem;
    }
    
    .icon svg {
        width: 60px;
        height: 60px;
    }
    
    .estimated-time,
    .contact-info {
        padding: 15px;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .maintenance-content {
        background: rgba(30, 30, 30, 0.95);
        color: #e9ecef;
    }
    
    h1 {
        color: #f8f9fa;
    }
    
    .main-message {
        color: #adb5bd;
    }
    
    .estimated-time {
        background: #343a40;
        color: #e9ecef;
    }
    
    .contact-info {
        background: #495057;
        border-color: #6c757d;
    }
    
    .contact-info p {
        color: #ffc107;
    }
    
    .contact-details span {
        background: #6c757d;
        color: #f8f9fa;
    }
}

/* 打印样式 */
@media print {
    body {
        background: white;
    }
    
    .maintenance-container {
        background: white;
    }
    
    .maintenance-content {
        background: white;
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
    
    .background-animation {
        display: none;
    }
    
    #refresh-btn {
        display: none;
    }
}

/* 无障碍支持 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    .maintenance-content {
        border: 2px solid #000;
    }
    
    h1 {
        color: #000;
    }
    
    .main-message {
        color: #333;
    }
    
    #refresh-btn {
        border: 2px solid #000;
    }
}